package com.yuyou.tas.feedback.service;

import com.yuyou.tas.service.api.feedback.dto.FeedbackClassPage;
import com.yuyou.tas.service.api.feedback.entity.FeedbackClass;
import com.yuyou.tas.service.api.feedback.vo.resp.FeedbackClassesVo;
import com.yuyou.tas.service.api.feedback.vo.resp.FeedbackEditDetail;
import com.yuyou.tas.util.bean.ResBoolSimpleInfo;

import java.util.List;

public interface IFeedbackClassService {
    int deleteByPrimaryKey(Long id);

    int insert(FeedbackClass record);

    FeedbackClass selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FeedbackClass record);

    /**
     * 创建班级反馈
     * @param classId
     * @param userId
     * @param organId
     * @return
     */
    ResBoolSimpleInfo<FeedbackClass> addFeedbackClass(Long classId, Long userId, Long organId);

    /**
     * 获取反馈编辑页数据：学生列表，反馈内容
     * @param feedbackClassId
     * @param userId
     * @param organId
     * @return
     */
    ResBoolSimpleInfo<FeedbackEditDetail> getFeedbackEditDetail(Long feedbackClassId, Long userId, Long organId);


    /**
     * 获取班级内反馈
     * @param classId
     * @param userId
     * @param organId
     * @param pageIndex
     * @param pageSize
     * @return
     */
    ResBoolSimpleInfo<FeedbackClassPage> findFeedbackClass(Long classId, Long userId, Long organId, Integer pageIndex, Integer pageSize);

    ResBoolSimpleInfo<List<FeedbackClassesVo>> findAllClassFeedback(Long teacherId , Long trimesterId);
}